package com.bwstudio.common.unires.exception;

import com.bwstudio.common.response.ErrorCodeI;

import lombok.Data;
import lombok.EqualsAndHashCode;

//@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper=false)
public class BusinessException extends RuntimeException{

	private static final long serialVersionUID = 1L;

	private String code;
	
	private String message;
	
//	public BusinessException() {
//        super();
//    }

//    public BusinessException(String message) {
//        super(message);
//    }
	
  public BusinessException(ErrorCodeI resultInfo) {
	  this.code = resultInfo.getCode();
	  this.message = resultInfo.getMessage();
  }
    
}
